'''
Created on 2011. 10. 27.

@author: user
'''



class PlayNLTK:
    def lexical_diversity(self, text):
        return len(text) / len(set(text))
    
    def percentage(self, count, total):
        return 100 * count / total